<!-- @author:褚政欣 2020-08-25 -->
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>角色设置</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
	content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
<link rel="stylesheet" href="${basePath!}/genius/layui/css/layui.css"
	media="all">
<link rel="stylesheet" href="${basePath!}/genius/style/admin.css"
	media="all">
<style>
		
	
		.layui-card-body{
/*			height:1000px; */
		} 


.ew-tree-table-group .ew-tree-table-box {
	overflow: auto;
	max-height: 700px;
}
</style>
</head>
<body>

<div class="layui-fluid">	
<div class="layui-card">
<div class="layui-card-body" >
  <div class="layui-row layui-col-space10">
	<div class="layui-fluid layui-col-md3">
		<div class="layui-card">
			<table id="LAY-role-list" lay-filter="LAY-role-list"></table>

			<script type="text/html" id="statusTpl">
          {{#  if(d.classflag == '0'){ }}
            		<span  style="color:green">启用</span>
          {{#  } else { }}
            <span  style="color:#ddd">禁用</span>
          {{#  } }}
        </script>
		</div>
	</div>
	
	<div class="layui-fluid layui-col-md8" style="width: 67.6%;">
		<div class="layui-card" id="form" hidden>
			<div class="layui-form layuiadmin-card-header-auto"
				style="padding-bottom: 5px; padding-left: 10px;margin-top: 10px; ">
					<button class="layui-btn layui-btn-warm layuiadmin-btn-admin"  data-type="save"><i class="layui-icon layui-icon-ok"></i>保存</button>
				<button class="layui-btn layui-btn-danger layuiadmin-btn-admin"  data-type="backtable"><i class="layui-icon layui-icon-return"></i>返回</button>
				<!--<button class="layui-btn layui-btn-primary layuiadmin-btn-admin" name="systemname" id="systemname">已选择系统:</button>-->

			</div>
			<div class="layui-card-body" id="body2">
				<div class="layui-tab layui-tab-card">
					<ul class="layui-tab-title">
						<li class="layui-this">订货设置</li>
					</ul>

					<div class="layui-own-border" id="layui-own-border">
						<form class="layui-form" action="" lay-filter="form1">
							<div class="mode1">
								<div class="layui-form-item">

									<div class="layui-inline" >
										<label class="layui-form-label layui-required" >已选择系统</label>
										<div class="layui-input-block" >
											<input type="text" name="system" id="system"
												readonly placeholder="" autocomplete="off" class="layui-input">
										</div>
									</div>
								</div>
								<div class="layui-form-item">

									<div class="layui-inline" >
										<label class="layui-form-label layui-required" >订货倍数</label>
										<div class="layui-input-block" >
											<input type="text" name="ordernum" id="ordernum"
												lay-verify="required|num" placeholder="请输入" autocomplete="off" class="layui-input">
										</div>
									</div>

									<div class="layui-inline">
										<label class="layui-form-label " >订货方式</label>
										<div class="layui-input-block" style="width: 218px;">
											<select name="orderType" id="orderType" >
												<option value="0">手动订货</option>
												<option value="1">自动订货</option>
											</select>
										</div>
									</div>

								</div>
								<div class="layui-form-item">
									<div class="layui-inline">
										<label class="layui-form-label " >OPL系数</label>
										<div class="layui-input-block">
											<input type="text" name="oplvalue" id="oplvalue"
												lay-verify="num" placeholder="请输入" autocomplete="off"
												class="layui-input">
										</div>
									</div>
									<div class="layui-inline">
										<label class="layui-form-label " >补货方式</label>
										<div class="layui-input-block" style="width: 218px;">
											<select name="orderintype" id="orderintype">

											</select>
										</div>
									</div>
								</div>
								<div class="layui-form-item">
									<div class="layui-inline">
										<label class="layui-form-label layui-required" >安全库存天数</label>
										<div class="layui-input-block">
											<input type="text" name="safestock" id="safestock"
												lay-verify="required|num" placeholder="请输入" autocomplete="off"
												class="layui-input">
										</div>
									</div>
									<div class="layui-inline" >
										<label class="layui-form-label " >最小到货天数</label>
										<div class="layui-input-block">
											<input type="text" name="minday" id="minday"
												 placeholder="请输入" autocomplete="off"
												class="layui-input">
										</div>
									</div>
								</div>
								<div class="layui-form-item">
									<div class="layui-inline">
										<label class="layui-form-label" >入场日期</label>
										<div class="layui-input-block">
											<input type="text" name="startdate"
											 readonly	class="layui-input" id="startdateLayDate"
												placeholder="yyyy-MM-dd">
										</div>
									</div>

									<div class="layui-inline">
										<label class="layui-form-label " >属性</label>
										<div class="layui-input-block" style="width: 218px;">
											<select name="attribute" id="attribute">
												<option value="0">可订货</option>
												<option value="1">可退货</option>
											</select>
										</div>
									</div>


								</div>
								<div class="layui-form-item">
									<div class="layui-inline" >
										<label class="layui-form-label"  >退场日期</label>
										<div class="layui-input-block">
											<input type="text" name="enddate"
											readonly	class="layui-input" id="enddateLayDate"
												placeholder="yyyy-MM-dd">
										</div>
									</div>

									<div class="layui-inline" >
										<label class="layui-form-label " >状态</label>
										<div class="layui-input-block" style="width: 218px;">
											<select name="flag" id="flag" >
												<option value="0">启用</option>
												<option value="1">禁用</option>
											</select>
										</div>
									</div>
								</div>
								<div class="layui-form-item">
									<div class="layui-inline">
										<label class="layui-form-label ">备注</label>
										<div class="layui-input-block">
											<textarea name="remark" id="remark" lay-verify=""
												placeholder="请输入" class="layui-textarea" style="width: 546px;"></textarea>
										</div>
									</div>
								</div>
							</div>
							<div class="layui-form-item layui-hide">
								<input type="button" lay-submit lay-filter="save" value="确认">
							</div>

							<div class="clearfix"></div>
						</form>
					</div>
				</div>
			</div>
		</div>
		<div class="layui-card" id="table" style="margin-top: 10px">
			<table id="goods_order_table" lay-filter="goods_order_table"></table>
		</div>
	</div>

	<div class="clearfix"></div>

</div>
</div>
</div>
</div>



	<script src="${basePath!}/genius/layui/layui.js"></script>

<script type="text/html" id="opeTable">
	<a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
</script>
	<script>
//   layui.config({
//     base: '${basePath!}/genius/' //静态资源所在路径
//     ,host:'${basePath!}'//项目访问路径
//   }).extend({
//     index: 'lib/index' //主入口模块
//     ,role:'/adminmanager/role'
//   }).use(['index','role']);
layui.config({
    base: '${basePath!}/genius/' 
    ,host:'${basePath!}'//项目访问路径
  }).extend({
	index:'lib/index'
    ,insert2: 'unite_platform/goods_order/insert2'
  }).use(['index','insert2'], function(){
	 var $ = layui.$
	 ,insert2 = layui.insert2;
	 var parentJson = {};
	 parentJson.goodscode = "${RequestParameters["goodscode"]}";
	 parentJson.goodsname = "${RequestParameters["goodsname"]}";
	 parentJson.goodscode = "${RequestParameters["goodscode"]}";
	  
	 insert2.setParentJson(parentJson);
  });
  </script>
</body>
</html>